#include<stdio.h>

void print(unsigned x)
{
	if(x)
	{
		print(x/10);
		printf("%d",x%10);
	}
}

int main()
{
	unsigned num=0;
	scanf("%u",&num);
	print(num);
	return 0;
}
